<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="keywords" content="<%=h meta_keywords %>" />
<meta name="description" content="<%=h WIKI_DESCRIPTION %>" />
<meta name="viewport" content="width=device-width;" />
<title><%=h WIKI_TITLE %> <%=h (@content.nil? ? '' : ':: ' + @content.attributes['title']) %></title>

<link rel="alternate" type="application/rss+xml" title="RSS" href="<%= feed_uri %>"/>
<!-- common -->
<%= stylesheet_link_tag 'scaffold' %>
<!-- for PC -->
<%= stylesheet_link_tag 'layout', :media => 'screen and (min-device-width: 481px)' %>
<%= stylesheet_link_tag 'style', :media => 'screen and (min-device-width: 481px)' %>
<!-- for iPhone -->
<%= stylesheet_link_tag 'layout_iphone', :media => 'only screen and (max-device-width: 480px)' %>
<%= stylesheet_link_tag 'style_iphone', :media => 'only screen and (max-device-width: 480px)' %>

<!--[if lt IE 7]><%= stylesheet_link_tag 'ie' %><![endif]-->
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag 'webtoolkit.sha1.js' %>
<%= javascript_include_tag 'jquery/jquery' %>
<%= javascript_include_tag 'mobile' %>
<script type="text/javascript"><!--
var $j = jQuery.noConflict();
//--></script>
</head>
<body>

<div id="layout_body">

<!-- 上段 -->
<div id="layout_top">
<!-- ヘッダー -->
<div class="header">
<h1><a name="top" href="/<%= (WWW_DIR.to_s == '') ? '' : WWW_DIR + '/' %>"><%=h WIKI_TITLE %></a> <span class="description"><%=h WIKI_DESCRIPTION %></span></h1>
<p style="color: green"><%= flash[:notice] %></p>
</div>
<!-- /ヘッダー -->
</div>
<!-- /上段 -->

<!-- 中段 -->
<div id="layout_middle">
<!-- メニュー -->
<div id="layout_left">
<div class="menu">
<% unless (@content.attributes['title'] == DEFAULT_MENU) then %>
<%= render_component :action=>'menu' %>
<% end %>
</div>
</div>
<!-- /メニュー -->

<!-- コンテンツ -->
<%= yield  %>
<!-- /コンテンツ -->
</div>
<!-- /中段 -->

<!-- 下段 -->
<div id="layout_bottom">
<!-- フッター -->
<div class="footer">
<div>Wiki on Rails 0.1.1 Copyright &copy; 2007-<%= Date.today.year %> <a href="http://code.google.com/p/wiki-on-rails/" class="link">Wiki on Rails Developers Team.</a></div>
<div>License is <a href="http://www.opensource.org/licenses/mit-license.php">MIT</a>. Powered by Ruby on Rails.</div>
</div>
<!-- /フッター -->
</div>
<!-- /下段 -->

</div>

</body>
</html>
